package popcorn.ticket.dao;

import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import popcorn.ticket.entity.MovieHalls;
import popcorn.ticket.entity.MovieHallsExample;

@Repository
public interface MovieHallsMapper {
    long countByExample(MovieHallsExample example);

    int deleteByExample(MovieHallsExample example);

    int deleteByPrimaryKey(Integer hallid);

    int insert(MovieHalls record);

    int insertSelective(MovieHalls record);

    List<MovieHalls> selectByExample(MovieHallsExample example);

    MovieHalls selectByPrimaryKey(Integer hallid);

    int updateByExampleSelective(@Param("record") MovieHalls record, @Param("example") MovieHallsExample example);

    int updateByExample(@Param("record") MovieHalls record, @Param("example") MovieHallsExample example);

    int updateByPrimaryKeySelective(MovieHalls record);

    int updateByPrimaryKey(MovieHalls record);
    
    //获取在映影厅数
    int selectHallsNum();

}